#ifdef TIME_2_SKIP
#else
#include "view_time_2.h"
#include "view_time_2.inc"
#include "view_time_0.h"
#include "display_ctrl.h"
#include "platform_assert.h"
#include "lfs_file_manager_auto.h"
#include "rtc.h"
#include "datetime.h"
#include "blecom.h"
#include "battery_ctrl.h"
#include "sport_his.h"
#include "display_ctrl.h"
#include "display_interface_240x240.h"
#include "datetime.h"
#include "heart_rate_interface.h"
#include "font/num_font.h"
#include "font_mngr.h"
#include "view_common.h"
#include "app_trace.h"
#include "view_times.h"
#include "view_time_1.h"
#define LOG(fmt, ...) // app_trace_log(fmt "\r\n", ##__VA_ARGS__)

static void view_time_2_background(void)
{
	_disp_show_flash_img(DISP_LFS_FILE_INDEX_4,0,0,FILE_IMG_back_green);
}

static void view_time_2_time(void)
{
	int x = 40;
	int y = 49;
	int front_width=20;
	int front_height = 34;
	int front_width_spacing = 7;
	int front_height_spacing = 16;
	
	
	disp_draw_user_image_filter_color(x,y,img_time_2_time_num_TAB[disp_ctrl.com_data.i_temp[3]/10]);
	x+=front_width_spacing+front_width;
	disp_draw_user_image_filter_color(x,y,img_time_2_time_num_TAB[disp_ctrl.com_data.i_temp[3]%10]);
	x=40;
	y +=front_height+front_height_spacing;
	disp_draw_user_image_filter_color(x,y,img_time_2_time_num_TAB[disp_ctrl.com_data.i_temp[4]/10]);
	x+=front_width+front_width_spacing;
	disp_draw_user_image_filter_color(x,y,img_time_2_time_num_TAB[disp_ctrl.com_data.i_temp[4]%10]);
}

static void view_time_2_week(void)
{
	disp_draw_user_image_filter_color(43,186,img_time_2_week_TAB[disp_ctrl.com_data.i_temp[5]-1]);
}

void view_time_2_display(void)
{
	view_time_2_background();
	view_time_2_time();
	view_time_2_week();
	show_time_0_ble(disp_ctrl.com_data.i_temp[6]);
  show_time_0_battery(disp_ctrl.com_data.i_temp[7]);
}
#endif
